<?php
error_reporting(0);
$isadmin=1;
include_once '../comm/config.php';
include '../comm/checkpostandget.php';
include 'check.php';
$webname=$_POST['webname']; 
$url=$_POST['url']; 
$wz=$_POST['wz']; 
$id=$_POST['id']; 
$pic=$_POST['picname'];
$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
     die(ERR_DB);
}
mysql_select_db($dbname);

mysql_query("set names utf8");

$q = "update ".$BIAOTOU."yqlj set webname='".$webname."',url='".$url."',wz=".$wz.",pic='".$pic."' where id='".$id."'";
//echo $q;
mysql_query($q);

header('Location: hzhblist.php');     

mysql_close($link);

?>
